home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / a_man / cat1 / xfsrestore.z / xfsrestore
Encoding:
Text File  |  2002-10-03  |  38.6 KB  |  727 lines

  1.  
  2.  
  3.  
  4. xxxxffffssssrrrreeeessssttttoooorrrreeee((((1111MMMM))))                                                  xxxxffffssssrrrreeeessssttttoooorrrreeee((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      xfsrestore - XFS filesystem incremental restore utility
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      xxxxffffssssrrrreeeessssttttoooorrrreeee -h
  13.      xxxxffffssssrrrreeeessssttttoooorrrreeee [ options ] -f _s_o_u_r_c_e [ -f _s_o_u_r_c_e ... ] _d_e_s_t
  14.      xxxxffffssssrrrreeeessssttttoooorrrreeee [ options ] - _d_e_s_t
  15.      xxxxffffssssrrrreeeessssttttoooorrrreeee -I [ subopt=value ... ]
  16.  
  17. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.      _x_f_s_r_e_s_t_o_r_e restores filesystems from dumps produced by _x_f_s_d_u_m_p(1M).  Two
  19.      modes of operation are available:  simple and cumulative.
  20.  
  21.      The default is simple mode.  _x_f_s_r_e_s_t_o_r_e populates the specified
  22.      destination directory, _d_e_s_t, with the files contained in the dump media.
  23.  
  24.      The ----rrrr option specifies the cumulative mode.  Successive invocations of
  25.      _x_f_s_r_e_s_t_o_r_e are used to apply a chronologically ordered sequence of delta
  26.      dumps to a base (level 0) dump.  The contents of the filesystem at the
  27.      time each dump was produced is reproduced.  This can involve adding,
  28.      deleting, renaming, linking, and unlinking files and directories.
  29.  
  30.      A delta dump is defined as either an incremental dump (_x_f_s_d_u_m_p ----llll option
  31.      with level > 0) or a resumed dump (_x_f_s_d_u_m_p ----RRRR option).  The deltas must
  32.      be applied in the order they were produced.  Each delta applied must have
  33.      been produced with the previously applied delta as its base.
  34.  
  35.      The options to _x_f_s_r_e_s_t_o_r_e are:
  36.  
  37.      ----aaaa _h_o_u_s_e_k_e_e_p_i_n_g
  38.           Each invocation of _x_f_s_r_e_s_t_o_r_e creates a directory called
  39.           _x_f_s_r_e_s_t_o_r_e_h_o_u_s_e_k_e_e_p_i_n_g_d_i_r.  This directory is normally created
  40.           directly under the _d_e_s_t directory.  The ----aaaa option allows the
  41.           operator to specify an alternate directory, _h_o_u_s_e_k_e_e_p_i_n_g, in which
  42.           _x_f_s_r_e_s_t_o_r_e creates the _x_f_s_r_e_s_t_o_r_e_h_o_u_s_e_k_e_e_p_i_n_g directory.  When
  43.           performing a cumulative (----rrrr option) restore, each successive
  44.           invocation of _x_f_s_r_e_s_t_o_r_e must specify the same alternate directory.
  45.  
  46.      ----bbbb _b_l_o_c_k_s_i_z_e
  47.           Specifies the blocksize to be used for the restore. This option is
  48.           specified only with the minimal rmt option (see the ----mmmm option
  49.           below). For a QIC drive , blocksize must always be 512.  For other
  50.           drives such as DAT or 8 mm , the same blocksize used for the xfsdump
  51.           operation must be specified to restore the tape.  When specified ,
  52.           this blocksize applies to all remote tape sources.
  53.  
  54.      ----cccc _p_r_o_g_n_a_m_e
  55.           Use the specified program to alert the operator when a media change
  56.           is required. The alert program is typically a script to send a mail
  57.           or flash a window to draw the operator's attention.
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. xxxxffffssssrrrreeeessssttttoooorrrreeee((((1111MMMM))))                                                  xxxxffffssssrrrreeeessssttttoooorrrreeee((((1111MMMM))))
  71.  
  72.  
  73.  
  74.      ----eeee   Prevents _x_f_s_r_e_s_t_o_r_e from overwriting existing files in the _d_e_s_t
  75.           directory.
  76.  
  77.      ----ffff _s_o_u_r_c_e [ ----ffff _s_o_u_r_c_e ... ]
  78.           Specifies a source of the dump to be restored.  This can be the
  79.           pathname of a device (such as a tape drive), a regular file, or a
  80.           remote tape drive (see _r_m_t(1M)).  Up to 20 sources can be specified.
  81.           All sources are simultaneously applied to the restore.  For example,
  82.           if the dump to be restored spanned three tapes, three tape drives
  83.           could be used to simultaneously restore the portions of the dump
  84.           contained on each tape.  All other permutations are supported.  This
  85.           option must be omitted if the standard input option (a lone ----
  86.           preceding the _d_e_s_t specification) is specified.
  87.  
  88.      ----iiii   Selects interactive operation.  Once the on-media directory
  89.           hierarchy has been read, an interactive dialogue is begun.  The
  90.           operator uses a small set of commands to peruse the directory
  91.           hierarchy, selecting files and subtrees for extraction.  The
  92.           available commands are given below.  Initially nothing is selected,
  93.           except for those subtrees specified with ----ssss command line options.
  94.  
  95.           llllssss [_a_r_g]       List the entries in the current directory or the
  96.                          specified directory, or the specified non-directory
  97.                          file entry.  Both the entry's original inode number
  98.                          and name are displayed.  Entries that are directories
  99.                          are appended with a `/'.  Entries that have been
  100.                          selected for extraction are prepended with a `*'.
  101.  
  102.           ccccdddd [_a_r_g]       Change the current working directory to the specified
  103.                          argument, or to the filesystem root directory if no
  104.                          argument is specified.
  105.  
  106.           ppppwwwwdddd            Print the pathname of the current directory, relative
  107.                          to the filesystem root.
  108.  
  109.           aaaadddddddd [_a_r_g]      The current directory or specified file or directory
  110.                          within the current directory is selected for
  111.                          extraction.  If a directory is specified, then it and
  112.                          all its descendents are selected.  Entries that are
  113.                          selected for extraction are prepended with a `*' when
  114.                          they are listed by llllssss.
  115.  
  116.           ddddeeeelllleeeetttteeee [_a_r_g]   The current directory or specified file or directory
  117.                          within the current directory is deselected for
  118.                          extraction.  If a directory is specified, then it and
  119.                          all its descendents are deselected.  The most
  120.                          expedient way to extract most of the files from a
  121.                          directory is to select the directory and then
  122.                          deselect those files that are not needed.
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. xxxxffffssssrrrreeeessssttttoooorrrreeee((((1111MMMM))))                                                  xxxxffffssssrrrreeeessssttttoooorrrreeee((((1111MMMM))))
  137.  
  138.  
  139.  
  140.           eeeexxxxttttrrrraaaacccctttt        Ends the interactive dialogue, and causes all
  141.                          selected subtrees to be restored.
  142.  
  143.           qqqquuuuiiiitttt           _x_f_s_r_e_s_t_o_r_e ends the interactive dialogue and
  144.                          immediately exits, even if there are files or
  145.                          subtrees selected for extraction.
  146.  
  147.           hhhheeeellllpppp           List a summary of the available commands.
  148.  
  149.      ----mmmm   Use the minimal rmt protocol for remote tape sources. This is used
  150.           when the remote machine is a non-SGI machine. With this option,
  151.           _x_f_s_r_e_s_t_o_r_e uses version 1 rmt protocol for all remote tape drives.
  152.           This option cannot be used without specifying a blocksize to be used
  153.           (see ----bbbb option above). If all rmt sources are SGI machines, it is
  154.           preferable nnnnooootttt to specify this option.
  155.  
  156.      ----nnnn _f_i_l_e
  157.           Allows _x_f_s_r_e_s_t_o_r_e to restore only files newer than _f_i_l_e.  The
  158.           modification time of _f_i_l_e (i.e., as displayed with the llllssss ----llll
  159.           command) is compared to the inode modification time of each file on
  160.           the source media (i.e., as displayed with the llllssss ----llllcccc command).  A
  161.           file is restored from media only if its inode modification time is
  162.           greater than or equal to the modification time of _f_i_l_e.
  163.  
  164.      ----oooo   Restore file and directory owner/group even if not root.  When run
  165.           with an effective user id of root, _x_f_s_r_e_s_t_o_r_e restores owner and
  166.           group of each file and directory.  When run with any other effective
  167.           user id it does not, unless this option is specified.
  168.  
  169.      ----pppp _i_n_t_e_r_v_a_l
  170.           Causes progress reports to be printed at intervals of _i_n_t_e_r_v_a_l
  171.           seconds.  The interval value is approximate, _x_f_s_r_e_s_t_o_r_e will delay
  172.           progress reports to avoid undue processing overhead.
  173.  
  174.      ----rrrr   Selects the cumulative mode of operation.
  175.  
  176.      ----ssss _s_u_b_t_r_e_e
  177.           Specifies a subtree to restore.  Any number of ----ssss options are
  178.           allowed.  The restore is constrained to the union of all subtrees
  179.           specified.  Each subtree is specified as a pathname relative to the
  180.           restore _d_e_s_t.  If a directory is specified, the directory and all
  181.           files beneath that directory are restored.
  182.  
  183.      ----tttt   Displays the contents of the dump, but does not create or modify any
  184.           files or directories.  It may be desirable to set the verbosity
  185.           level to ssssiiiilllleeeennnntttt when using this option.
  186.  
  187.      ----vvvv _v_e_r_b_o_s_i_t_y
  188.      ----vvvv _s_u_b_s_y_s=_v_e_r_b_o_s_i_t_y[,_s_u_b_s_y_s=_v_e_r_b_o_s_i_t_y,...]
  189.           Specifies the level of detail used for messages displayed during the
  190.           course of the restore. The _v_e_r_b_o_s_i_t_y argument can be passed as
  191.           either a string or an integer. If passed as a string the following
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. xxxxffffssssrrrreeeessssttttoooorrrreeee((((1111MMMM))))                                                  xxxxffffssssrrrreeeessssttttoooorrrreeee((((1111MMMM))))
  203.  
  204.  
  205.  
  206.           values may be used:  ssssiiiilllleeeennnntttt, vvvveeeerrrrbbbboooosssseeee, ttttrrrraaaacccceeee, ddddeeeebbbbuuuugggg, or nnnniiiittttttttyyyy.  If
  207.           passed as an integer, values from 0-5 may be used. The values 0-4
  208.           correspond to the strings already listed. The value 5 can be used to
  209.           produce even more verbose debug output.
  210.  
  211.           The first form of this option activates message logging across all
  212.           restore subsystems. The second form allows the message logging level
  213.           to be controlled on a per-subsystem basis. The two forms can be
  214.           combined (see the example below). The argument _s_u_b_s_y_s can take one
  215.           of the following values: ggggeeeennnneeeerrrraaaallll, pppprrrroooocccc, ddddrrrriiiivvvveeee, mmmmeeeeddddiiiiaaaa, iiiinnnnvvvveeeennnnttttoooorrrryyyy, and
  216.           ttttrrrreeeeeeee.
  217.  
  218.           For example, to restore the root filesystem with tracing activated
  219.           for all subsystems:
  220.  
  221.                #### xxxxffffssssrrrreeeessssttttoooorrrreeee ----vvvv ttttrrrraaaacccceeee ----ffff ////ddddeeeevvvv////ttttaaaappppeeee ////
  222.  
  223.           To enable debug-level tracing for drive and media operations:
  224.  
  225.                #### xxxxffffssssrrrreeeessssttttoooorrrreeee ----vvvv ddddrrrriiiivvvveeee====ddddeeeebbbbuuuugggg,,,,mmmmeeeeddddiiiiaaaa====ddddeeeebbbbuuuugggg ----ffff ////ddddeeeevvvv////ttttaaaappppeeee ////
  226.  
  227.           To enable tracing for all subsystems, and debug level tracing for
  228.           drive operations only:
  229.  
  230.                #### xxxxffffssssrrrreeeessssttttoooorrrreeee ----vvvv ttttrrrraaaacccceeee,,,,ddddrrrriiiivvvveeee====ddddeeeebbbbuuuugggg ----ffff ////ddddeeeevvvv////ttttaaaappppeeee ////
  231.  
  232.  
  233.      ----wwww   This option is not normally recommended.  This option will force
  234.           xfsrestore to use small mmap regions which will reduce the
  235.           likelihood of an mmap failure. However, this will slow down
  236.           xfsrestore during directory processing when there are over 1 million
  237.           inodes.
  238.  
  239.      ----AAAA   Do not restore extended file attributes.  When restoring a
  240.           filesystem managed within a DMF environment this option should not
  241.           be used. DMF stores file migration status within extended attributes
  242.           associated with each file. If these attributes are not preserved
  243.           when the filesystem is restored, files that had been in migrated
  244.           state will not be recallable by DMF. Note that dumping of extended
  245.           file attributes is also optional.
  246.  
  247.      ----BBBB   Change the ownership and permissions of the destination directory to
  248.           match those of the root directory of the dump.
  249.  
  250.      ----DDDD   Restore DMAPI (Data Management Application Programming Interface)
  251.           event settings. If the restored filesystem will be managed within
  252.           the same DMF environment as the original dump it is essential that
  253.           the -D option be used. Otherwise it is not usually desirable to
  254.           restore these settings.
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. xxxxffffssssrrrreeeessssttttoooorrrreeee((((1111MMMM))))                                                  xxxxffffssssrrrreeeessssttttoooorrrreeee((((1111MMMM))))
  269.  
  270.  
  271.  
  272.      ----EEEE   Prevents _x_f_s_r_e_s_t_o_r_e from overwriting newer versions of files.  The
  273.           inode modification time of the on-media file is compared to the
  274.           inode modification time of corresponding file in the _d_e_s_t directory.
  275.           The file is restored only if the on-media version is newer than the
  276.           version in the _d_e_s_t directory.  The inode modification time of a
  277.           file can be displayed with the llllssss ----llllcccc command.
  278.  
  279.      ----FFFF   Inhibit interactive operator prompts.  This option inhibits
  280.           _x_f_s_r_e_s_t_o_r_e from prompting the operator for verification of the
  281.           selected dump as the restore target and from prompting for any media
  282.           change.
  283.  
  284.      ----IIII   Causes the _x_f_s_d_u_m_p inventory to be displayed (no restore is
  285.           performed).  Each time _x_f_s_d_u_m_p is used, an online inventory in
  286.           /_v_a_r/_x_f_s_d_u_m_p/_i_n_v_e_n_t_o_r_y is updated.  This is used to determine the
  287.           base for incremental dumps.  It is also useful for manually
  288.           identifying a dump session to be restored (see the ----LLLL and ----SSSS
  289.           options).  Suboptions to filter the inventory display are described
  290.           later.
  291.  
  292.      ----JJJJ   Inhibits inventory update when on-media session inventory
  293.           encountered during restore.  _x_f_s_r_e_s_t_o_r_e opportunistically updates
  294.           the online inventory when it encounters an on-media session
  295.           inventory, but only if run with an effective user id of root and
  296.           only if this option is not given.
  297.  
  298.      ----LLLL _s_e_s_s_i_o_n__l_a_b_e_l
  299.           Specifies the label of the dump session to be restored.  The source
  300.           media is searched for this label.  It is any arbitrary string up to
  301.           255 characters long.  The label of the desired dump session can be
  302.           copied from the inventory display produced by the ----IIII option.
  303.  
  304.      ----OOOO _o_p_t_i_o_n_s__f_i_l_e
  305.           Insert the options contained in _o_p_t_i_o_n_s__f_i_l_e into the beginning of
  306.           the command line.  The options are specified just as they would
  307.           appear if typed into the command line.  In addition, newline
  308.           characters (\n) can be used as whitespace.  The options are placed
  309.           before all options actually given on the command line, just after
  310.           the command name.  Only one ----OOOO option can be used.  Recursive use is
  311.           ignored.  The destination directory cannot be specified in
  312.           _o_p_t_i_o_n_s__f_i_l_e.
  313.  
  314.      ----QQQQ   Force completion of an interrupted restore session.  This option is
  315.           required to work around one specific pathological scenario.  When
  316.           restoring a dump session which was interrupted due to an EOM
  317.           condition and no online session inventory is available, _x_f_s_r_e_s_t_o_r_e
  318.           cannot know when the restore of that dump session is complete.  The
  319.           operator is forced to interrupt the restore session.  In that case,
  320.           if the operator tries to subsequently apply a resumed dump (using
  321.           the ----rrrr option), _x_f_s_r_e_s_t_o_r_e refuses to do so.  The operator must tell
  322.           _x_f_s_r_e_s_t_o_r_e to consider the base restore complete by using this
  323.           option when applying the resumed dump.
  324.  
  325.  
  326.  
  327.                                                                         PPPPaaaaggggeeee 5555
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334. xxxxffffssssrrrreeeessssttttoooorrrreeee((((1111MMMM))))                                                  xxxxffffssssrrrreeeessssttttoooorrrreeee((((1111MMMM))))
  335.  
  336.  
  337.  
  338.      ----RRRR   Resume a previously interrupted restore.  _x_f_s_r_e_s_t_o_r_e can be
  339.           interrupted at any time by pressing the terminal interrupt character
  340.           (see _s_t_t_y(1)).  Use this option to resume the restore.  The ----aaaa and
  341.           _d_e_s_t_i_n_a_t_i_o_n options must be the same.
  342.  
  343.      ----SSSS _s_e_s_s_i_o_n__i_d
  344.           Specifies the session UUID of the dump session to be restored.  The
  345.           source media is searched for this UUID.  The UUID of the desired
  346.           dump session can be copied from the inventory display produced by
  347.           the ----IIII option.
  348.  
  349.      ----TTTT   Inhibits interactive dialogue timeouts.  _x_f_s_r_e_s_t_o_r_e prompts the
  350.           operator for media changes.  This dialogue normally times out if no
  351.           response is supplied.  This option prevents the timeout.
  352.  
  353.      ----XXXX _s_u_b_t_r_e_e
  354.           Specifies a subtree to exclude.  This is the converse of the ----ssss
  355.           option.  Any number of ----XXXX options are allowed.  Each subtree is
  356.           specified as a pathname relative to the restore _d_e_s_t.  If a
  357.           directory is specified, the directory and all files beneath that
  358.           directory are excluded.
  359.  
  360.      ----YYYY _i_o__r_i_n_g__l_e_n_g_t_h
  361.           Specify I/O buffer ring length.  _x_f_s_r_e_s_t_o_r_e uses a ring of input
  362.           buffers to achieve maximum throughput when restoring from tape
  363.           drives.  The default ring length is 3.
  364.  
  365.      ----    A lone ---- causes the standard input to be read as the source of the
  366.           dump to be restored.  Standard input can be a pipe from another
  367.           utility (such as _x_f_s_d_u_m_p(1M)) or a redirected file.  This option
  368.           cannot be used with the ----ffff option.  The ---- must follow all other
  369.           options, and precede the _d_e_s_t specification.
  370.  
  371.      The dumped filesystem is restored into the _d_e_s_t directory.  There is no
  372.      default; the _d_e_s_t must be specified.
  373.  
  374. NNNNOOOOTTTTEEEESSSS
  375.    CCCCuuuummmmuuuullllaaaattttiiiivvvveeee RRRReeeessssttttoooorrrraaaattttiiiioooonnnn
  376.      A base (level 0) dump and an ordered set of delta dumps can be
  377.      sequentially restored, each on top of the previous, to reproduce the
  378.      contents of the original filesystem at the time the last delta was
  379.      produced.  The operator invokes _x_f_s_r_e_s_t_o_r_e once for each dump.  The ----rrrr
  380.      option must be specified.  The _d_e_s_t directory must be the same for all
  381.      invocations.  Each invocation leaves a directory named
  382.      _x_f_s_r_e_s_t_o_r_e_h_o_u_s_e_k_e_e_p_i_n_g in the _d_e_s_t directory (however, see the ----aaaa option
  383.      above).  This directory contains the state information that must be
  384.      communicated between invocations.  The operator must remove this
  385.      directory after the last delta has been applied.
  386.  
  387.      _x_f_s_r_e_s_t_o_r_e also generates a directory named _o_r_p_h_a_n_a_g_e in the _d_e_s_t
  388.      directory.  _x_f_s_r_e_s_t_o_r_e removes this directory after completing a simple
  389.      restore.  However, if _o_r_p_h_a_n_a_g_e is not empty, it is not removed.  This
  390.  
  391.  
  392.  
  393.                                                                         PPPPaaaaggggeeee 6666
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400. xxxxffffssssrrrreeeessssttttoooorrrreeee((((1111MMMM))))                                                  xxxxffffssssrrrreeeessssttttoooorrrreeee((((1111MMMM))))
  401.  
  402.  
  403.  
  404.      can happen if files present on the dump media are not referenced by any
  405.      of the restored directories.  The _o_r_p_h_a_n_a_g_e has an entry for each such
  406.      file.  The entry name is the file's original inode number, a ".", and the
  407.      file's generation count modulo 4096 (only the lower 12 bits of the
  408.      generation count are used).
  409.  
  410.      _x_f_s_r_e_s_t_o_r_e does not remove the _o_r_p_h_a_n_a_g_e after cumulative restores.  Like
  411.      the _x_f_s_r_e_s_t_o_r_e_h_o_u_s_e_k_e_e_p_i_n_g directory, the operator must remove it after
  412.      applying all delta dumps.
  413.  
  414.    MMMMeeeeddddiiiiaaaa MMMMaaaannnnaaaaggggeeeemmmmeeeennnntttt
  415.      A dump consists of one or more media files contained on one or more media
  416.      objects.  A media file contains all or a portion of the filesystem dump.
  417.      Large filesystems are broken up into multiple media files to minimize the
  418.      impact of media dropouts, and to accommodate media object boundaries
  419.      (end-of-media).
  420.  
  421.      A media object is any storage medium:  a tape cartridge, a remote tape
  422.      device (see _r_m_t(1M)), a regular file, or the standard input (currently
  423.      other removable media drives are not supported).  Tape cartridges can
  424.      contain multiple media files, which are typically separated by (in tape
  425.      parlance) file marks.  If a dump spans multiple media objects, the
  426.      restore must begin with the media object containing the first media file
  427.      dumped.  The operator is prompted when the next media object is needed.
  428.  
  429.      Media objects can contain more than one dump.  The operator can select
  430.      the desired dump by specifying the dump label (----LLLL option), or by
  431.      specifying the dump UUID (----SSSS option).  If neither is specified,
  432.      _x_f_s_r_e_s_t_o_r_e scans the entire media object, prompting the operator as each
  433.      dump session is encountered.
  434.  
  435.      The inventory display (----IIII option) is useful for identifying the media
  436.      objects required.  It is also useful for identifying a dump session.  The
  437.      session UUID can be copied from the inventory display to the ----SSSS option
  438.      argument to unambiguously identify a dump session to be restored.
  439.  
  440.      Dumps placed in regular files or the standard output do not span multiple
  441.      media objects, nor do they contain multiple dumps.
  442.  
  443.    IIIInnnnvvvveeeennnnttttoooorrrryyyy
  444.      Each dump session updates an inventory database in
  445.      /_v_a_r/_x_f_s_d_u_m_p/_i_n_v_e_n_t_o_r_y.  This database can be displayed by invoking
  446.      _x_f_s_r_e_s_t_o_r_e with the ----IIII option.  The display uses tabbed indentation to
  447.      present the inventory hierarchically.  The first level is filesystem.
  448.      The second level is session.  The third level is media stream (currently
  449.      only one stream is supported).  The fourth level lists the media files
  450.      sequentially composing the stream.
  451.  
  452.      The following suboptions are available to filter the display.
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.                                                                         PPPPaaaaggggeeee 7777
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466. xxxxffffssssrrrreeeessssttttoooorrrreeee((((1111MMMM))))                                                  xxxxffffssssrrrreeeessssttttoooorrrreeee((((1111MMMM))))
  467.  
  468.  
  469.  
  470.      ----IIII ddddeeeepppptttthhhh====_n
  471.           (where _n is 1, 2, or 3) limits the hierarchical depth of the
  472.           display. When _n is 1, only the filesystem information from the
  473.           inventory is displayed. When _n is 2, only filesystem and session
  474.           information are displayed. When _n is 3, only filesystem, session and
  475.           stream information are displayed.
  476.  
  477.      ----IIII lllleeeevvvveeeellll====_n
  478.           (where _n is the dump level) limits the display to dumps of that
  479.           particular dump level.
  480.  
  481.      The display may be restricted to media files contained in a specific
  482.      media object.
  483.  
  484.      ----IIII mmmmoooobbbbjjjjiiiidddd====_v_a_l_u_e
  485.           (where _v_a_l_u_e is a media ID) specifies the media object by its media
  486.           ID.
  487.  
  488.      ----IIII mmmmoooobbbbjjjjllllaaaabbbbeeeellll====_v_a_l_u_e
  489.           (where _v_a_l_u_e is a media label) specifies the media object by its
  490.           media label.
  491.  
  492.      Similarly, the display can be restricted to a specific filesystem.
  493.  
  494.      ----IIII mmmmnnnntttt====_m_o_u_n_t__p_o_i_n_t
  495.           (that is, [hostname:]pathname), identifies the filesystem by
  496.           mountpoint.  Specifying the hostname is optional, but may be useful
  497.           in a clustered environment where more than one host can be
  498.           responsible for dumping a filesystem.
  499.  
  500.      ----IIII ffffssssiiiidddd====_f_i_l_e_s_y_s_t_e_m__i_d
  501.           identifies the filesystem by filesystem ID.
  502.  
  503.      ----IIII ddddeeeevvvv====_d_e_v_i_c_e__p_a_t_h_n_a_m_e
  504.           (that is, [hostname:]device_pathname) identifies the filesystem by
  505.           device.  As with the mmmmnnnntttt filter, specifying the hostname is
  506.           optional.
  507.  
  508.      More than one of these suboptions, separated by commas, may be specified
  509.      at the same time to limit the display of the inventory to those dumps of
  510.      interest.  However, at most four suboptions can be specified at once:
  511.      one to constrain the display hierarchy depth, one to constrain the dump
  512.      level, one to constrain the media object, and one to constrain the
  513.      filesystem.
  514.  
  515.      For example, ----IIII ddddeeeepppptttthhhh====1111,,,,mmmmoooobbbbjjjjllllaaaabbbbeeeellll====""""ttttaaaappppeeee 1111"""",,,,mmmmnnnntttt====hhhhoooosssstttt1111::::////tttteeeesssstttt____mmmmnnnntttt would
  516.      display only the filesystem information (depth=1) for those filesystems
  517.      that were mounted on _h_o_s_t_1:/_t_e_s_t__m_n_t at the time of the dump, and only
  518.      those filesystems dumped to the media object labeled "tape 1".
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.                                                                         PPPPaaaaggggeeee 8888
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532. xxxxffffssssrrrreeeessssttttoooorrrreeee((((1111MMMM))))                                                  xxxxffffssssrrrreeeessssttttoooorrrreeee((((1111MMMM))))
  533.  
  534.  
  535.  
  536.      Dump records may be removed (pruned) from the inventory using the
  537.      _x_f_s_i_n_v_u_t_i_l program.
  538.  
  539.      An additional media file is placed at the end of each dump stream.  This
  540.      media file contains the inventory information for the current dump
  541.      session.  This is currently unused.
  542.  
  543.    MMMMeeeeddddiiiiaaaa EEEErrrrrrrroooorrrrssss
  544.      _x_f_s_d_u_m_p is tolerant of media errors, but cannot do error correction.  If
  545.      a media error occurs in the body of a media file, the filesystem file
  546.      represented at that point is lost.  The bad portion of the media is
  547.      skipped, and the restoration resumes at the next filesystem file after
  548.      the bad portion of the media.
  549.  
  550.      If a media error occurs in the beginning of the media file, the entire
  551.      media file is lost.  For this reason, large dumps are broken into a
  552.      number of reasonably sized media files.  The restore resumes with the
  553.      next media file.
  554.  
  555.    QQQQuuuuoooottttaaaassss
  556.      When _x_f_s_d_u_m_p dumps a filesystem with quotas, it creates a file in the
  557.      root of the dump called _x_f_s_d_u_m_p__q_u_o_t_a_s.  _x_f_s_r_e_s_t_o_r_e can restore this file
  558.      like any other file included in the dump.  This file can be processed by
  559.      the _e_d_q_u_o_t_a(1M) command to reactivate the quotas.  However, the
  560.      _x_f_s_d_u_m_p__q_u_o_t_a_s file contains information which may first require
  561.      modification; specifically the filesystem name and the user ids.  If you
  562.      are restoring the quotas for the same users on the same filesystem from
  563.      which the dump was taken, then no modification will be necessary.
  564.      However, if you are restoring the dump to a different filesystem, you
  565.      will need to:
  566.  
  567.      - ensure the new filesystem is mounted with the quota option
  568.  
  569.      - modify the _x_f_s_d_u_m_p__q_u_o_t_a_s file to contain the new filesystem name
  570.  
  571.      - ensure the uids in the _x_f_s_d_u_m_p__q_u_o_t_a_s file are correct
  572.  
  573.      Once the quota information has been verified,
  574.  
  575.           #### ////uuuussssrrrr////eeeettttcccc////eeeeddddqqqquuuuoooottttaaaa ----iiii xxxxffffssssdddduuuummmmpppp____qqqquuuuoooottttaaaassss
  576.  
  577.      will apply the quota limits to the filesystem.
  578.  
  579.    TTTTrrrruuuusssstttteeeedddd IIIIRRRRIIIIXXXX RRRReeeessssttttrrrriiiiccccttttiiiioooonnnnssss
  580.      In the Trusted IRIX environment, xxxxffffssssrrrreeeessssttttoooorrrreeee can only correctly restore
  581.      files of a multi-level directory from the dump file generated by xxxxffffssssdddduuuummmmpppp
  582.      when xxxxffffssssrrrreeeessssttttoooorrrreeee is run at a moldy process label and with the following
  583.      set of capabilities:  CCCCAAAAPPPP____MMMMAAAACCCC____RRRREEEEAAAADDDD , CCCCAAAAPPPP____MMMMAAAACCCC____WWWWRRRRIIIITTTTEEEE , and CCCCAAAAPPPP____DDDDEEEEVVVVIIIICCCCEEEE____MMMMGGGGTTTT....
  584.  
  585.    CCCClllluuuusssstttteeeerrrreeeedddd FFFFiiiilllleeeessssyyyysssstttteeeemmmmssss
  586.      In a clustered environment where a CXFS filesystem may, over time, have
  587.      many metadata servers, it is recommended that the _x_f_s_d_u_m_p(1M) inventory
  588.  
  589.  
  590.  
  591.                                                                         PPPPaaaaggggeeee 9999
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598. xxxxffffssssrrrreeeessssttttoooorrrreeee((((1111MMMM))))                                                  xxxxffffssssrrrreeeessssttttoooorrrreeee((((1111MMMM))))
  599.  
  600.  
  601.  
  602.      be shared so that it is accessible from every machine in the cluster.
  603.      Therefore, _x_f_s_r_e_s_t_o_r_e should be used only on a machine which has access
  604.      to the shared inventory.  Please refer to the _x_f_s_d_u_m_p(1M) man page for
  605.      more information on this topic.
  606.  
  607.    CCCCoooorrrreeee FFFFiiiilllleeeessss
  608.      If xfsrestore abnormally exits causing a core dump, all its associated
  609.      processes which dump core will have core file names with their extensions
  610.      set to the pids of the processes. See _p_r_c_t_l(2) and PPPPRRRR____CCCCOOOORRRREEEEPPPPIIIIDDDD for further
  611.      details.
  612.  
  613. EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  614.      To restore the root filesystem from a locally mounted tape:
  615.  
  616.           #### xxxxffffssssrrrreeeessssttttoooorrrreeee ----ffff ////ddddeeeevvvv////ttttaaaappppeeee ////
  617.  
  618.      To restore from a remote tape, specifying the dump session id:
  619.  
  620.           #### xxxxffffssssrrrreeeessssttttoooorrrreeee ----LLLL sssseeeessssssssiiiioooonnnn____1111 ----ffff ooootttthhhheeeerrrrhhhhoooosssstttt::::////ddddeeeevvvv////ttttaaaappppeeee ////nnnneeeewwww
  621.  
  622.      To restore the contents a of a dump to another subdirectory:
  623.  
  624.           #### xxxxffffssssrrrreeeessssttttoooorrrreeee ----ffff ////ddddeeeevvvv////ttttaaaappppeeee ////nnnneeeewwwwddddiiiirrrr
  625.  
  626.      To copy the contents of a filesystem to another directory (see
  627.      _x_f_s_d_u_m_p(1M)):
  628.  
  629.           #### xxxxffffssssdddduuuummmmpppp ----JJJJ ---- //// |||| xxxxffffssssrrrreeeessssttttoooorrrreeee ----JJJJ ---- ////nnnneeeewwww
  630.  
  631.  
  632. FFFFIIIILLLLEEEESSSS
  633.      /var/xfsdump/inventory   dump inventory database
  634.  
  635. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  636.      eeeeddddqqqquuuuoooottttaaaa(1M), rrrrmmmmtttt(1M), xxxxffffssssdddduuuummmmpppp(1M), xxxxffffssssiiiinnnnvvvvuuuuttttiiiillll(1M), aaaattttttttrrrr____sssseeeetttt(2),
  637.      qqqquuuuoooottttaaaassss(4).
  638.  
  639. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  640.      The exit code is 0 on normal completion, and non-zero if an error
  641.      occurred or the restore was terminated by the operator.
  642.  
  643.      For all verbosity levels greater than 0 (ssssiiiilllleeeennnntttt) the final line of the
  644.      output shows the exit status of the restore. It is of the form:
  645.  
  646.           xxxxffffssssdddduuuummmmpppp:::: RRRReeeessssttttoooorrrreeee SSSSttttaaaattttuuuussss:::: _c_o_d_e
  647.  
  648.      Where _c_o_d_e takes one of the following values:  SSSSUUUUCCCCCCCCEEEESSSSSSSS (normal
  649.      completion), IIIINNNNTTTTEEEERRRRRRRRUUUUPPPPTTTT (interrupted), QQQQUUUUIIIITTTT (media no longer usable),
  650.      IIIINNNNCCCCOOOOMMMMPPPPLLLLEEEETTTTEEEE (restore incomplete), FFFFAAAAUUUULLLLTTTT (software error), and EEEERRRRRRRROOOORRRR
  651.      (resource error).  Every attempt will be made to keep both the syntax and
  652.      the semantics of this log message unchanged in future versions of
  653.      xfsrestore.  However, it may be necessary to refine or expand the set of
  654.  
  655.  
  656.  
  657.                                                                        PPPPaaaaggggeeee 11110000
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664. xxxxffffssssrrrreeeessssttttoooorrrreeee((((1111MMMM))))                                                  xxxxffffssssrrrreeeessssttttoooorrrreeee((((1111MMMM))))
  665.  
  666.  
  667.  
  668.      exit codes, or their interpretation at some point in the future.
  669.  
  670. BBBBUUUUGGGGSSSS
  671.      Pathnames of restored non-directory files (relative to the _d_e_s_t
  672.      directory) must be 1023 characters (MAXPATHLEN) or less.  Longer
  673.      pathnames are discarded and a warning message displayed.
  674.  
  675.      There is no verify option to _x_f_s_r_e_s_t_o_r_e.  This would allow the operator
  676.      to compare a filesystem dump to an existing filesystem, without actually
  677.      doing a restore.
  678.  
  679.      The interactive commands (----iiii option) do not understand regular
  680.      expressions.
  681.  
  682.      When the minimal rmt option is specified, _x_f_s_r_e_s_t_o_r_e applies it to all
  683.      remote tape sources. The same blocksize (specified by the ----bbbb option) is
  684.      used for all these remote drives.
  685.  
  686.      _x_f_s_r_e_s_t_o_r_e uses the alert program only when a media change is required.
  687.  
  688.      Cumulative mode (----rrrr option) requires that the operator invoke _x_f_s_r_e_s_t_o_r_e
  689.      for the base and for each delta to be applied in sequence to the base.
  690.      It would be better to allow the operator to identify the last delta in
  691.      the sequence of interest, and let _x_f_s_r_e_s_t_o_r_e work backwards from that
  692.      delta to identify and apply the preceding deltas and base dump, all in
  693.      one invocation.
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.                                                                        PPPPaaaaggggeeee 11111111
  724.  
  725.  
  726.  
  727.